package com.zwb.demo.easyweb.modules.config.entity;

import com.zwb.demo.easyweb.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 模板表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table(name = "t_gem_template")
@Entity
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
public class GenTemplatePO extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(name = "id", insertable = false, nullable = false, length = 32)
    private String id;

    /**
     * 模板名
     */
    @Column(name = "template_name", nullable = false)
    private String templateName;

    /**
     * 模板类型
     */
    @Column(name = "template_type", nullable = false)
    private Integer templateType;

    /**
     * 模板描述
     */
    @Column(name = "template_desc")
    private String templateDesc;

    /**
     * 是否系统模板
     */
    @Column(name = "is_system")
    private Boolean system;

}
